package com.runda.service;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.multipart.MultipartFile;

import com.bbjob.model.VersionUpgrade;
import com.bbjob.util.service.IService;
import com.github.pagehelper.PageInfo;

public interface IVersionUpgradeService extends IService<VersionUpgrade> {

	/**
	 * 新增软件版本
	 * @param request
	 * @param multipartFile
	 * @return
	 */
	public int upload(HttpServletRequest request,String username, MultipartFile multipartFile);
	
	/**
	 * 查看最新升级
	 * @return
	 */
	public VersionUpgrade checkUpgrade();
	
	/**
	 * 查看最新升级
	 * @return
	 */
	public VersionUpgrade checkUpgradeForExam();
	
	
	/**
	 * 列表
	 * @param version
	 * @param page
	 * @param size
	 * @return
	 */
	public PageInfo<VersionUpgrade> getlist(VersionUpgrade version, int page, int size);
	
	/**
	 * 删除
	 * @param id
	 * @return
	 */
	public int deleteUpgrade(Integer id);
	
}
